package com.briup.web_demo2.service;

import com.briup.web_demo2.pojo.Student;
import com.briup.web_demo2.response.PageTemplate;

import java.time.LocalDateTime;
import java.util.List;

public interface StudentService {

    void insertStudent(Student student);

    void deleteStudent(Integer id);

    void updateStudentById(Student student);

    Student selectStudentById(String id);

    PageTemplate<Student> getBasePage(Integer pageNum, Integer pageSize);

    PageTemplate<Student> getPageStudent(Integer pageNum, Integer pageSize);

    PageTemplate<Student> getPageStudentByCondition(Integer pageSize, Integer pageNum,
            Integer id, String name, Integer gender, LocalDateTime startTime, LocalDateTime endTime);
}
